<?php
//dezend by http://www.yunlu99.com/ QQ:270656184
defined('BASEPATH') || exit('No direct script access allowed');
?><link rel="stylesheet" href="/static/css/money.css">
<div class="user-body">
  	<div class="body-content">
      <div class="body-title">
       	 <?php echo lang('money_account');?>      </div>
           
      <div class="coins">
      	
<?php
foreach ($coins as $v) {
?>      	<a href="<?php echo site_url('channels/index');?>?cid=<?php echo $v['id'];?>" 
<?php
	if ($coin['id'] == $v['id']) {
?>class="on"<?php
	}

?> class="coin-tab"><?php echo $v['en_name'];?></a>
      	<?php
}

?>      	<div class="clear"></div>
      </div>
    
      
      <div class="address_list">
      	
<?php
foreach ($list as $v) {
?>      	<div class="address_item">
      		<i class="fa fa-close card_close delete-btn" title="关闭" data-id="<?php echo $v['id'];?>"></i>
      		<h3><?php echo $v['code'];?></h3>
      		<p>币种名称：<strong><?php echo $v['coin']['cn_name'];?></strong></p>
      	</div>
      	<?php
}

?>      	<div class="address_item" id="add_address">
      		<div class="address_icon">
	      		<i class="fa fa-briefcase fa-2x"></i>
	      		<p>添加钱包地址</p>
      		</div>
      	</div>
      	<script type="text/javascript">
		$(function(){
			$('#add_address').winEdit('<?php echo site_url('channels/address/' . $coin['id']);?>',500,300,'添加钱包地址');
			$('.delete-btn').single('<?php echo site_url('channels/address_del');?>');
		});
    	</script>
      	<div class="clear"></div>
      </div>

    </div>
  </div>
  <div class="clear"></div>
</div>